<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>不同的节日显示不同问候语</title>
</head>

<body>
<script language="JavaScript1.2" type="text/javascript">
  var msg="快乐每一天" ;
  var now=new Date() ;
  var month=now.getMonth()+1 ;
  var date=now.getDate() ;
  if (month==5 && date==1) {  msg="劳动节快乐！" ; }
  if (month==10 && date==1 ) { msg="国庆节快乐！" ; }	
  document.write(msg) ;
</script>
</body>
</html>
